import 'package:bi_project/http/request/base_request.dart';

import 'hi_net_adapter.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<NiNetResponse<T>> send<T>(BaseRequest request) {
    return Future.delayed(const Duration(milliseconds: 1000), () {
      return NiNetResponse(
          statusCode: 401, data: {"code": 0, "message": "success"} as T);
    });
  }
}
